package MyGraph;

// 顶点结点类
public class VNode {
    // 数据域值
    public Object data;
    // 指向第一条边的边结点
    public ArcNode firstArc;

    public VNode() {
        this(null, null);
    }

    public VNode(Object data) {
        this(data, null);
    }

    public VNode(Object data, ArcNode firstArc) {
        this.data = data;
        this.firstArc = firstArc;
    }
}
